package com.boot.system.fegin;

import cn.dev33.satoken.util.SaResult;
import com.boot.framework.common.R;
import com.boot.system.dto.SysMenuDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;
import org.springframework.web.service.annotation.PostExchange;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author yangfan
 * @date 2024/5/7
 * @Description
 */
@HttpExchange("/menu")
public interface SysMenuClient {
    /**
     * 根据角色ID查询菜单
     *
     * @param sysMenuDTO 查询参数
     * @param roleIds    角色编号
     * @return data-- List<SysMenuDTO>
     */
    @PostExchange("/list/roleIds")
    R<List<SysMenuDTO>> selectListByRoleIds(@RequestBody SysMenuDTO sysMenuDTO,@RequestBody List<String> roleIds);

    /**
     * 查询全部菜单数据
     *
     * @param params 查询参数
     * @return data-- List<SysMenuDTO>
     */
    @GetExchange("/list")
    R<List<SysMenuDTO>> selectList(@RequestParam Map<String, Object> params);

}
